#include "Scene01.hpp"

Scene01::Scene01() {
    this->setMessage("Stretch your legs a bit: press 'A' and 'D' to walk and 'SPACE' to jump");

    b2Vec2 vertices[14];
    vertices[0].Set(-6.0f, -3.5f);
    vertices[1].Set(-2.0f, -3.5f);
    vertices[2].Set(-2.0f, -2.5f);
    vertices[3].Set(0.0f, -2.5f);
    vertices[4].Set(0.0f, -1.5f);
    vertices[5].Set(2.0f, -1.5f);
    vertices[6].Set(2.0f, -0.5f);
    vertices[7].Set(6.0f, -0.5f);
    vertices[8].Set(6.0f, 1.5f);
    vertices[9].Set(4.0f, 1.5f);
    vertices[10].Set(4.0f, 3.5f);
    vertices[11].Set(-4.0f, 3.5f);
    vertices[12].Set(-4.0f, -1.5f);
    vertices[13].Set(-6.0f, -1.5f);

    this->createRoom(1, vertices, 14);
    this->start = this->createDoor(-4.0f, -2.5f, -1.0f);
    this->exit = this->createDoor(4.0f, 0.5f, 1.0f);
    this->exit->setState(false);
    this->createExit(5.0f, 0.5f);
    this->hero = this->createHero(-6.0f + HeroElement::WIDTH / 2.0f, -3.5f + HeroElement::HEIGHT / 2.0f);
}
